<template>
  <div>
    <el-amap-search-box class="search-box" :search-option="searchOption"
      :on-search-result="onSearchResult"></el-amap-search-box>
  </div>
</template>

<script>
import ElAmap from 'vue-amap';

export default {
  name: 'PlaceSearchContainer',
  data () {
    return {
      searchOption: {
        city: '全国',
        citylimit: false,
      },
    };
  },
  mounted () {

  },
  methods: {
    onSearchResult (result) {
      console.log(result);
    },
  },
};
</script>